#include "SelectServer.hpp"

void Usage(const std::string &proc)
{
    std::cout << proc << " serverPort" << std::endl;
}

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        Usage(argv[0]);
        exit(USER_ERR);
    }
    uint16_t serverPort = atoi(argv[1]);
    SelectServer* server = new SelectServer(serverPort);
    server->Init();
    server->Start();
    return 0;
}
